// pages/framework/index.js
const app = getApp();
Page({
  data: {
    nickName: "",
    avatarUrl: ""
  },
  onLoad() {
    this.setData({
      nickName: app.nickName,
      avatarUrl: app.avatarUrl,
    });
  },
  changeNickName(){
    app.changeNickName("Koi");
    this.setData({
      nickName:app.nickName
    })
  },
  onShow(){
    const pageRoutes = getCurrentPages()
    console.log("框架接口页面",pageRoutes);
  }
});